package com.sdy.sso.web.config;

import com.sdy.auth.client.filter.SsoAuthenticationFilter;
import com.sdy.auth.client.filter.SsoAuthorizationFilter;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import javax.servlet.Filter;

/**
 * <p>File: SsoConfig.java</p>
 * <p>Description: SsoConfig</p>
 *
 * @author zzq
 * @version V1.0
 * @since 2019-05-09
 */
@Configuration
@ComponentScan("com.sdy.sso.web.config")
public class SsoUrlConfig {
    @Value("${ucsso.server.domain}")
    @Getter
    private String serverDomain;

    @Value("${ucsso.client.domain:}")
    @Getter
    private String clientDomain;

    @Value("${ucsso.client.authorization}")
    @Getter
    private Boolean authorization;

    public static final String LOGIN_PAGE_URL = "/login/page";

}
